package com.bocloud.cmp.entity;

import com.alibaba.fastjson.JSONObject;
import com.bocloud.entity.annotations.Column;
import com.bocloud.entity.annotations.PK;
import com.bocloud.entity.annotations.Table;
import com.bocloud.entity.meta.PKStrategy;

/**
 * 字典实体类
 * 
 * @author dmw
 *
 */
@Table("dictionary")
public class Dictionary {

	@PK(value = PKStrategy.AUTO)
	private Long id; // ID
	@Column("pvalue")
	private String pvalue;
	@Column("name")
	private String name;
	@Column("value")
	private String value;// value

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the pvalue
	 */
	public String getPvalue() {
		return pvalue;
	}

	/**
	 * @param pvalue
	 *            the pvalue to set
	 */
	public void setPvalue(String pvalue) {
		this.pvalue = pvalue;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the value
	 */
	public String getValue() {
		return value;
	}

	/**
	 * @param value
	 *            the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}

	/**
	 * @param id
	 * @param pid
	 * @param name
	 * @param value
	 */
	public Dictionary(Long id, String pvalue, String name, String value) {
		super();
		this.id = id;
		this.pvalue = pvalue;
		this.name = name;
		this.value = value;
	}

	/**
	 * 
	 */
	public Dictionary() {
		super();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return JSONObject.toJSONString(this);
	}

}
